<?php

class Confession_IndexController extends Core_Controller_Action_Standard
{
  public function indexAction()
  {
    $this->view->someVar = 'someVal';
  }
	public function browseAction()
  {
  	$items_per_page =  20;
    // Prepare data
    $table = Engine_Api::_()->getDbtable('actions','activity');
    
    // Get paginator
    $this->view->paginator = $paginator = Zend_Paginator::factory($table->select()->where('type = "confession_new"')->where('body != ""'));
    $paginator->setItemCountPerPage($items_per_page);
    $this->view->paginator = $paginator->setCurrentPageNumber( $this->_getParam('page') );

  }
}
